package Threadnew;

public class NewThread {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("子线程");
            }
        }).start();
       Runnable r = new Runnable(){
            @Override
            public void run() {
                System.out.println("子线程");
            }
        };
        new Thread(r).start();
    }
}
